<?php 
include TEMPLATEPATH.'/controllers/pro-contact-us.php';

$thumbnail = db_get_post_meta($post_id, $wpdb->prefix.'thumbnail');
$title = get_the_title($post_id);
$excerpt = db_shortDesc(get_the_content(), 250);
?>
<?php 
$html = '';
$html .= '

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Email template</title>
<style>
@CHARSET "UTF-8";

*{
	outline:none;
	text-decoration:none;
	margin:0;
	padding:0;
	list-style:none;
	border:0;
	font-family:Tahoma,Arial, Helvetica, sans-serif;
	font-size:12px;
	color:#2f2f2f;
	word-spacing: 1.5px;
}
.mymain
{
	margin: 0 auto;
	width: 800px;	
}

.logo
{
	float: left;
	width: 175px;
	height: 99px;
	padding: 10px 5px;
}
#header
{
	background: url("../images/head_bg.jpg") top left repeat;
	width: 800px;
	height: 130px;
	margin: 0 auto;
	padding: 10px 5px;
}

#main-content
{
	width: 800px;
	height: auto;
	margin: 0 auto;
	padding: 5px 5px;
	background: url("../images/background.png") top left repeat;
	overflow: hidden;
}

#main-content img
{
	width: 200px !important;
	height: 140px !important;
	padding: 10px !important;
	float: left;
}

#main-content h1 a
{
	color: #0097c5;
	font-size: 16px;
	font-weight: bold;	
}

#main-content p
{
	line-height: 20px;
	word-spacing: 2px;
}
.main-footer .footer_box1
{
	background: url("../images/foot_bg.jpg") top left repeat;
	width: 790px;
	padding: 5px 10px; 
	color: #fff;
}

</style>

</head>

<body>
	<div class="mymain">
	<div id="header" class="fix-width">
		<div class="logo">
			<a href="'.WP_MYSITE_URL.'"><img alt="" src="'.WP_MYSITE_TEMPLATE_URL.'/images/logo.png"></a>
		</div>
		<div class="company-text">
			<a href="'.WP_MYSITE_URL.'"><img alt="" src="'.WP_MYSITE_TEMPLATE_URL.'/images/company_text.png"></a>
		</div>
		
		
	</div>
	
	<div id="main-content">
		<a href="'.WP_MYSITE_URL.'"><img alt="" src="'.$thumbnail.'"></a>
		<h1><a href="'.WP_MYSITE_URL.'">'.$title.'</a></h1>
		<p>
			'.$excerpt.'
		</p>	
	</div>
	<div class="main-footer">
		<div class="footer_box1">
					'.$companyName.'<br />
					Địa chỉ : '.$companyAddress.'<br />
					Điện thoại : '.$companyPhone.' | MST : '. $companyMST.' <br />
					Email : '.$companyContact.'<br />
					Web: '.$companySite.'
		</div>
	</div>
</div>
</body>
</html>


';
?>
